#ifndef CONDITION_H_INCLUDED
#define CONDITION_H_INCLUDED
#define cin std::cin
#define ifstream std::ifstream
#define cout std::cout
#define endl std::endl
VecDE start_pt=vMake(1, 1, 0);
VecDE curr_pt=start_pt;
ifstream data("TASK.txt");
float d0, a0, r, w, b, g, tmin, tmax;
void getData()
{
    data>>d0>>r>>w>>a0>>b>>g>>tmin>>tmax;
    return;
}
float omega(float t)
{
    return w;
}
float gamma(float t)
{
    return g;
}
float alpha(float t)
{
    return a0*(1+cos(r*w*t))/2;
}
float beta(float t)
{
    return b;
}
float delta(float t)
{
    return d0*(1+cos(r*w*t))/2;
}
float func(VecDE v)
{
    float   Dx=v.Dx,
            x =v.x,
            t=v.t;

    return gamma(t)*cos(omega(t)*t)-delta(t)*Dx-alpha(t)*x-beta(t)*x*x*x;
}
#endif // CONDITION_H_INCLUDED
